Crate yara_x_macros

source ·

Attribute Macros§

  • Indicates that a function is exported from a YARA module and therefore it’s callable from YARA rules.
  • The module_main macro is used for indicating which is the main function in a YARA module.
  • The wasm_export macro is used for declaring a Rust function that will be called from WASM.

Derive Macros§

  • The Error derive macro generates boilerplate code for YARA error types.
  • The HasSpan derive macro implements the HasSpan trait for structs and enums.